package com.example.controller;

import com.example.model.ScanProcess;
import com.example.service.ScanProcessService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/ScanProcess")
public class ScanProcessController {

        @Resource
        public ScanProcessService scanProcessService;

        @GetMapping("/selectByQrcode")
        public ScanProcess selectScanProcess(ScanProcess scanProcess) {
            return  scanProcessService.selectScanProcessByQrcode(scanProcess);

        }

}
